<template>
  <div class="home">
    <h1>Welcome to Vue 2.7</h1>
    <p>名字：{{ $store.state.name }}</p>
  </div>
</template>

<script>
const arr = [1, 2, 3, 4]
const splicedArr = arr.toSpliced(1, 2) //  从索引 1 开始删除 2 个元素s
console.log(splicedArr)
export default {
  name: 'home',
  data() {
    return {
      message: 'Hello Vue 2.0'
    }
  }
}
</script>

<style lang="scss" scoped>
.home {
  h1 {
    color: red;
  }
}
</style>
